aboutsummaryrefslogtreecommitdiff
path: root/pages/api/v2/episode/[id].js
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-09-25 23:45:27 +0700
committerFactiven <[email protected]>2023-09-25 23:45:27 +0700
commite4ce88fa532b15d4dcce8b8176f3e376e8c9c65f (patch)
tree68b377cc39f66bd23e95d5276ec555ffd87eacbe /pages/api/v2/episode/[id].js
parentUpdate _app.js (diff)
downloadmoopa-e4ce88fa532b15d4dcce8b8176f3e376e8c9c65f.tar.xz
moopa-e4ce88fa532b15d4dcce8b8176f3e376e8c9c65f.zip
Update v4.1.1
Diffstat (limited to 'pages/api/v2/episode/[id].js')
-rw-r--r--pages/api/v2/episode/[id].js2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/api/v2/episode/[id].js b/pages/api/v2/episode/[id].js
index ab2d321..c85982d 100644
--- a/pages/api/v2/episode/[id].js
+++ b/pages/api/v2/episode/[id].js
@@ -25,7 +25,7 @@ async function fetchConsumet(id, dub) {
`${CONSUMET_URI}/meta/anilist/episodes/${id}`
);
- if (data?.message === "Anime not found" || data?.length < 1) {
+ if (data?.message === "Anime not found" && data?.length < 1) {
return [];
}